<?php

namespace App\Models\Api;

use Illuminate\Database\Eloquent\Model;

class CompanyCertification extends Model
{
    //
    protected $table = 'company_certification';//表

    protected $guarded = [];

    protected $hidden = [
        'uid', 'com_id', 'created_at', 'updated_at'
    ];

    protected $casts = [
        'status' => 'string',
    ];

    /** 营业执照图片
     * @param $value
     * @return string
     */
    public function getLicenseAttribute($value)
    {
        return $value ? 'companylicense/' . $value : '';
    }
}
